<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html lang="zh">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta http-equiv="X-UA-Compatible" content="ie=edge" />
	<title>表3-4</title>
	<style media="print">
	    @page {
	      size: auto;  /* auto is the initial value */
	      margin: 0mm; /* this affects the margin in the printer settings */
	    }
	</style>
	<style>
		* {font-size: 12px; } body {width: 100%; margin: 0 ; padding: 0; } .wrap {padding: 0px 50px 0 50px;} h3 {font-size: 1.8em; text-align: center; margin: 30px 0 8px 0; } table th, table td {vertical-align: middle; } .form-header, .form-bottom, .vacc-bottom {width: 100%; margin: 0 auto; } .form-bottom, .vacc-bottom {margin-bottom: 20px; } .form-bottom tr td {line-height: 35px; } .form-header td {width: 50%; } .vacc-info, .tran-tool {width: 100%; border-collapse: collapse; border-spacing: 0; text-align: center; margin-bottom: 20px; } .vacc-info th, .tran-tool th {font-weight: normal; font-size: 1.2em; padding: 4px 6px; } .tran-tool th {text-align: left; } .vacc-info td, .tran-tool td {font-size: 0.8em; padding: 4px 6px; } .underline, .underline2, .underline3 {border-bottom: thin solid #000; position: relative; } .underline {padding: 0 10px; } .underline2 {padding: 0 20px; } .underline3 {padding: 0 40px; } th span {bottom: -1px; } td span {margin-right: 4px; line-height: 26px; bottom: -2px; } .mr10 {margin-right: 10px; } .w50 {width: 50px; min-width: 50px; } .w70 {width: 70px; min-width: 70px; }
	</style>
	<script>
 		<%-- var bsVaccineOrder = JSON.parse('${fns:toJson(bsVaccineOrder) }'); --%>
		
	</script>
</head>
<body>
	<div class="wrap">
		<h3>表3-4&nbsp;${fns:getUser().office.name }&nbsp;疫苗/注射器运输记录表</h3>
		<table class="form-header">
			<tr>
				<td><b>日期：</b><fmt:formatDate value="${bsVaccineOrder.outboundDate}" pattern="yyyy年MM月dd日"/> </td>
				<td><b>单号:</b>${bsVaccineOrder.orderNo }</td>
			</tr>
			<tr>
				<td colspan="2"><b>出入库类型：</b>${fns:getDictLabel(bsVaccineOrder.orderType, 'hl_inout_type', '') }</td>
			</tr>
			<tr>
				<td colspan="2"><b>运输疫苗情况:[规格]单位[剂/支或粒]，[数量]单位[支或粒]</b></td>
			</tr>
			<c:if test="${not empty bsVaccineOrder.remarks}">
				<tr>
					<td colspan="2"><b>备注信息：</b> ${bsVaccineOrder.remarks }
					</td>
				</tr>
			</c:if>
		</table>
		<c:if test="${not empty list1}">
			<table border="1" class="vacc-info">
				<tr>
					<th>序</th>
					<th>名称</th>
					<th>生产企业</th>
					<th>剂型/规格</th>
					<th>批号</th>
					<th class="w70">有效日期</th>
					<th>数量</th>
				</tr>
				<c:forEach items="${list1 }" var="li">
					<tr>
						<td>${li.no == 0?'':li.no}</td>
						<c:choose>
							<c:when test="${li.batchType eq '2' }">
							    <td>${fns:getDictLabel(li.vaccNameStyring, "batch_syringe_type", "")}</td>
							    <td>${li.companyNameStyring }</td>
							    <fmt:formatNumber var="c" value="${li.specStyring}" pattern="#"/>
								<td>${fns:getDictLabel(c, "syringe_spec", "")}</td>
							    <td>${li.batchNoStyring }</td>
							    <td><fmt:formatDate value="${li.outBoundDateStyring}" pattern="yyyy年MM月dd日"/></td>
							    <td>${li.vaccNum}</td>
							</c:when>
							<c:when test="${li.batchType eq '1' }">
							    <td>${li.vaccName}</td>
								<td>${li.companyName}</td>
								<td>${fns:getDictLabel(li.doseType, "hl_dose_form", "")}${not empty li.spec?'/':''}${li.spec}</td>
								<td>${li.batchNo}</td>
								<td><fmt:formatDate value="${li.outBoundDate}" pattern="yyyy年MM月dd日"/></td>
								<td>${li.vaccNum}</td>
							</c:when>
							<c:otherwise>
								<td></td>
								<td></td>
								<td></td>
								<td></td>
								<td></td>
								<td>${li.vaccNum == 0? '&nbsp':''}</td>
							</c:otherwise>
						</c:choose>
					</tr>
				</c:forEach>
				<tr>
					<td colspan="6" class="text-right">合计</td>
					<td>${count1}</td>
				</tr>
			</table>
		</c:if>
		
		<c:if test="${not empty list2}">
			<table border="1" class="vacc-info">
				<tr>
					<th>序</th>
					<th>名称</th>
					<th>生产企业</th>
					<th>剂型/规格</th>
					<th>批号</th>
					<th class="w70">有效日期</th>
					<th>数量</th>
				</tr>
				<c:forEach items="${list2 }" var="li">
					<tr>
						<td>${li.no == 0?'':li.no}</td>
						<td>${li.vaccName }</td>
						<td>${li.companyName }</td>
						<td>${fns:getDictLabel(li.doseType, "hl_dose_form", "")}${not empty li.spec?'/':''}${li.spec}</td>
						<td>${li.batchNo }</td>
						<td><fmt:formatDate value="${li.outBoundDate}" pattern="yyyy年MM月dd日"/></td>
						<td>${li.vaccNum }</td>
					</tr>
				</c:forEach>
				<tr>
					<td colspan="6" class="text-right">合计</td>
					<td>${count2 }</td>
				</tr>
			</table>
		</c:if>

		<table class="vacc-bottom">
			<tr>
				<td><b>业务：</b></td>
				<td><b>库管：</b></td>
				<td><b>审批：</b></td>
			</tr>
		</table>
		
		<table border="1" class="tran-tool">
			<tr>
				<th colspan="2"><b class="mr10">疫苗运输工具：</b>
					<c:if test="${bsVaccineOrder.transportation == '3'}">
						${bsVaccineOrder.otherTransportation }
					</c:if>
					<c:if test="${bsVaccineOrder.transportation != '3'}">
						${fns:getDictLabel(bsVaccineOrder.transportation,'bs_order_transportation','')}
					</c:if>
				</th>
				<th colspan="3"><b class="mr10">疫苗冷藏方式：</b>
					<c:if test="${bsVaccineOrder.refrigeratetype == '3' }">
						${bsVaccineOrder.otherRefrigeratetype }
					</c:if>
					<c:if test="${bsVaccineOrder.refrigeratetype != '3'}">
						${fns:getDictLabel(bsVaccineOrder.refrigeratetype,'bs_order_refrigeratetype','')}
					</c:if>
				</th>
			</tr>
			<tr>
				<th colspan="2"><b class="mr10">运输温度记录：</b>见监控系统记录</th>
				<th colspan="3">
					<b>启运至返回时行驶公里数目：</b>
					<span class="underline3"></span>
				</th>
			</tr>
		</table>
		<table class="form-bottom">
			<tr>
				<td style="width: 40%;"><b>供货单位：</b>${bsVaccineOrder.supplyorgName }</td>
				<td style="width: 24%;"><b>送货人签名：</b><span class="underline3"></span></td>
				<td style="width: 35%;"><b>启运：</b>&emsp;&emsp;&emsp;年&emsp;&emsp;月&emsp;&emsp;日&emsp;&emsp;时&emsp;&emsp;分</span></td>
			</tr>
			<tr>
				<td><b>收货单位：</b>${bsVaccineOrder.receiveorgName }</td>
				<td><b>收货人签名：</b><span class="underline3"></span></td>
				<td><b>到达：</b>&emsp;&emsp;&emsp;年&emsp;&emsp;月&emsp;&emsp;日&emsp;&emsp;时&emsp;&emsp;分</span></td>
			</tr>
		</table>
		<p style="margin: 2px 0;">
			填写说明：本表供各级发放/购进疫苗运输时填写；运输超过6小时需纪录途中温度，每天纪录2次，间隔不少于6小时；
			使用无自动温度显示的冰排保冷设备时，只在启动和达到时填写冰排状态（冻结、冰水混合物、完全融化）。
			
		</p>
	</div>
</body>
<script>
	  window.print(); 
	  setTimeout("top.opener=null;window.close()",1);  
</script>
</html>